import java.util.PriorityQueue;

/**
 * @program: 20222.17 堆
 * @description:
 * @author: 李鑫月
 * @create: 2022-02-17 15:27
 **/
public class TestDemo {

//    public static void main(String[] args) {
//        PriorityQueue<String> priorityQueue=new PriorityQueue();
//        priorityQueue.offer("qwe");
//    }
    public static void main(String[] args) {
        TestHeap heap=new TestHeap();
        int[] arr={16,2,3,64,5,6,7,78,9,11};
        heap.createHeap(arr);
        heap.heapSort();
        System.out.println("****************");
        heap.offer(999);
        heap.poll();
        heap.poll();
        System.out.println();

    }
}
